package com.beidu.lottery.call.entity.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.beidu.lottery.call.entity.common.PageQuery;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 活动列表查询
 *
 * @author 北渡
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class OrderListQuery extends PageQuery implements Serializable {

    @ApiModelProperty(value = "奖品类型(0:实体奖品, 1:虚拟奖品, 2:积分奖品)")
    private Integer prizeType;

    @ApiModelProperty(value = "订单状态(0:未发放, 1:待发放, 2:已发放, 3:已失效)")
    private Integer orderStatus;

    @ApiModelProperty(value = "创建日期开始")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDateBegin;

    @ApiModelProperty(value = "创建日期结束")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDateEnd;

    @ApiModelProperty(value = "订单编号或者手机号")
    private String keyWord;

    private String userId;

    private Integer prizeId;


}
